package ru.ifmo.metopt.abstracts;

/**
 * @author avhaliullin
 */
public abstract class Function1D extends AbstractFunction {

    protected double safeF(double... args) {
        return f(args[0]);
    }

    public abstract double f(double arg);

    public int dimensionality() {
        return 1;
    }
}
